package com.li.decoratorpattern;

/**
 * @author lirenchun
 * 装饰类
 */
public class UserModel extends UserAbstract {

    private UserAbstract userAbstract;

    public UserModel(UserAbstract userAbstract) {
        this.userAbstract = userAbstract;
    }

    public UserModel() {
    }

    @Override
    public String getName() {
        return this.userAbstract.getName();
    }

    @Override
    public double getIncome() {
        return this.userAbstract.getIncome();
    }
}
